#!/usr/bin/make -f

#export DH_VERBOSE=1
#export DH_OPTIONS=-v

configure: configure-stamp
configure-stamp:
	dh_testdir
	touch configure-stamp

build: build-stamp
build-stamp: configure-stamp
	dh_testdir
	touch build-stamp

clean:
	dh_testdir
	dh_testroot
	rm -f build-stamp configure-stamp

	-python setup.py clean --all

	dh_clean

install: build
	dh_testdir
	dh_testroot
	dh_clean -k
	dh_installdirs
	dh_install

	python setup.py install --root=$(CURDIR)/debian/flud --no-compile
	#python setup.py clean --all

binary-indep: build install

binary-arch: build install
	dh_testdir
	dh_testroot
	dh_installchangelogs
	dh_installdocs
	dh_installexamples
	dh_installlogrotate
	#dh_installinit -pflud --name flud -r --no-start -- defaults 90
	#dh_installcron
	#dh_installman
	dh_link
	dh_strip
	dh_compress
	dh_fixperms
	#dh_pysupport
	dh_installdeb
	dh_shlibdeps
	dh_gencontrol
	dh_md5sums
	dh_builddeb

binary: binary-indep binary-arch
.PHONY: build clean binary-indep binary-arch binary install configure

